Ext.define ('rangoaqui.store.Cupom', 
{
	
	extend:  'Ext.data.Store',
	
	config: {
		storeId: 'Cupom',
		model: 'rangoaqui.model.Cupom',
		proxy: {
				type: 'ajax',
				url: 'http://esaleiro.bugs3.com/wsdl/cupons.php',
				reader: {
					type: 'json',
					rootProperty: 'cupom'
				},
				api: {
						read: 'http://esaleiro.bugs3.com/wsdl/cupons.php?act=loadcupom',
						create: 'http://esaleiro.bugs3.com/wsdl/cupons.php?act=createcupom',
						update: 'http://esaleiro.bugs3.com/wsdl/cupons.php?act=updatecupom',
						destroy: 'http://esaleiro.bugs3.com/wsdl/cupons.php?act=erasecupom'
				}
			}
		}	

});